/*
********************************************************************************
* Copyright (C) 2021, xiang.D <dx_65535@163.com>.
* All right reserved.
*
* File Name   : common_type.h
* Author      :
* Version     : V1.0
* Description :
* Journal     : 2022-02-13 init v1.0
* Brief       : Blog: https://blog.csdn.net/qq_38750572?spm=1001.2014.3001.5343
* Others      :
********************************************************************************
*/

#ifndef __COMMON_TYPE_H__
#define __COMMON_TYPE_H__

typedef enum
{
    LED_OPEN = 0,           ///< Open Led
    LED_STOP,               ///< Close Led
    LED_HORSE ,             ///< Show Horse Led
    LED_BREATH              ///< Show Breath Led
} ELedMsgType;

typedef struct {
    ELedMsgType type;
    char data[1024];
} SMsgData;

typedef struct {
    ELedMsgType type;
    int intValue1;
    int intValue2;
}SLedCmd;

typedef void(*PTypeCallBack)(int, void *); 

typedef struct {
    int fd;
    PTypeCallBack cb;
} SListenParam;

#endif

